//
//  DetailOfNum_list.m
//  LoveOfPet
//
//  Created by 芦彬 on 15/11/19.
//  Copyright © 2015年 孔维. All rights reserved.
//

#import "DetailOfNum_list.h"

@implementation DetailOfNum_list

- (void)dealloc{
    [_day release];
    [_list release];
    [_detailOfNum_listArray release];
    [super dealloc];
}

- (instancetype)initWithDictionary:(NSDictionary *)dic{
    self = [super init];
    if (self) {
        self.detailOfNum_listArray = [NSMutableArray array];
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+ (DetailOfNum_list *)detailOfNum_listWithDictionary:(NSDictionary *)dictionary{
    DetailOfNum_list *list = [[DetailOfNum_list alloc]initWithDictionary:dictionary];
    return [list autorelease];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}

- (void)setValue:(id)value forKey:(NSString *)key{
    
    if ([key isEqualToString:@"list"]) {
        for (NSDictionary *dic in value) {
            self.list = [List listWithDictionary:dic];
            [self.detailOfNum_listArray addObject:self.list];
        }
    }else if ([key isEqualToString:@"day"]){
        self.day = value;
    }
}


@end
